package com.siruier.boss.ui.helper

import com.bytedance.sdk.openadsdk.TTCustomController
import com.siruier.boss.App
import com.siruier.boss.ui.utils.SPUtils
import java.util.*

object MyCustomController : TTCustomController() {
    private var devImei: String

    init {
        devImei = App.OAID ?: SPUtils.getString("devImei")
        if (devImei.isBlank()) {
            devImei = UUID.randomUUID().toString()
            SPUtils.put("devImei", devImei)
        }
    }

    override fun isCanUsePhoneState(): Boolean {
        return false
    }

    override fun getDevImei(): String {
        return devImei
    }

    override fun isCanUseAndroidId(): Boolean {
        return false
    }
}